﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ListTeacher.aspx.cs"
    Inherits="HiTeachers.Web.ListTeacher" Title="" %>

<%@ Import Namespace="HiTeachers.Utilities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphSearch" runat="server">
    <hiteacher:Search ID="htcSearch" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainMenu" runat="server">
    <hiteacher:MainMenu ID="mnuMain" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
    <form id="dftForm" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="toolkitScriptMaster" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <asp:DataList ID="dtlMember" RepeatColumns="3" RepeatDirection="Vertical" RepeatLayout="Flow"
        runat="server">
        <ItemTemplate>
            <div class="foto">
                <div class="imgTeacherdiv">
                    <div align="center">
                        <a href="<%# Eval("ID", "TeacherDetails.aspx?itid={0}") %>">
                            <hiteacher:ResizedImage ID="imgFace" ImageUrl='<%# Eval("ImagePath") %>' MaxHeight="60"
                                MaxWidth="60" runat="server" /></a></div>
                </div>
                <label class="name">
                    <%# Eval("Name") %></label>
                <label>
                    <b>Nick:&nbsp;<%# Convert.ToString(Eval("Email")).Sub(4) + "..."%>&hellip;</b></label>
                <div class="rating">
                    <b style="float: left;">Đánh giá:&nbsp;</b>
                    <ajaxToolkit:Rating ID="teacherRating" CssClass="divRating" CurrentRating='<%# Eval("Rate") %>'
                        MaxRating="5" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
                        FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" Direction="LeftToRight"
                        RatingDirection="LeftToRightTopToBottom" runat="server">
                    </ajaxToolkit:Rating>
                </div>
                <div class="perex">
                    <%# Convert.ToString(Eval("Intro")).Sub(160)%>&hellip;</div>
            </div>
        </ItemTemplate>
    </asp:DataList>
    <div class="pager">
        <asp:Literal ID="ltrPaper" runat="server"></asp:Literal>
    </div>
    </form>
</asp:Content>
